﻿#region License statement
// NJamb, a specification and delta-specification DSL
// Copyright (c) 2010-2011, Mark Knell
// Published under the MIT License; all other rights reserved
#endregion

#region using...
using NUnit.Framework;
#endregion

namespace NJamb.DemoCode.Bowling
{
	[TestFixture]
	public class ClassicBowlingFixture
	{
		[Test]
		public void ShouldBeStrikeWhenFirstRollIsPerfect()
		{
			// arrange
			var frame = new Frame();
			// act
			frame.Roll(new PerfectRoll());
			// assert
			Assert.AreEqual(frame.PinsUp, 0);
			Assert.IsTrue(frame.IsStrike);
		}
	}
}
